import { CSSGlobal } from './global'

export const CSSWhiteSpace_Name = 'CSSWhiteSpace'
export const CSSWhiteSpaceType_Name = 'CSSWhiteSpaceType'

/**
 * CSS white-space 属性值
 *
 * MDN：https://developer.mozilla.org/zh-CN/docs/Web/CSS/white-space#%E8%AF%AD%E6%B3%95
 */
export const CSSWhiteSpace = {
  ...CSSGlobal,
  normal: 'normal',
  nowrap: 'nowrap',
  wrap: 'wrap',
  pre: 'pre',
  preWrap: 'pre-wrap',
  preLine: 'pre-line',
  breakSpaces: 'break-spaces',
  collapse_balance: 'collapse balance',
  preserve_nowrap: 'preserve nowrap'
} as const

export type CSSWhiteSpaceType = (typeof CSSWhiteSpace)[keyof typeof CSSWhiteSpace]
